import CommonApi from './common'

// 桥隧涵-涵洞
class BTCCulvertApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/property/culvert'
    }

    validNameUnique(data) {
        const path = this.resolvePath('/nameCheck')
        return this.post(path, data)
    }
    // 编码唯一性检查
    validCodeUnique(data) {
        const path = this.resolvePath('/codeCheck')
        return this.post(path, data)
    }
    // 根据所属高速、方向获取线路
    getCodeNameList(data) {
        const path = '/property/vectorline/getCodeNameList'
        return this.post(path, data)
    }
}

export default BTCCulvertApi
